using System;
using System.Data.Entity.ModelConfiguration;
using System.Data.Common;
using System.Data.Entity;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Dal.Entities;

namespace Dal.Mapping
{
	public class DocMap : EntityTypeConfiguration<Doc>
	{
		public DocMap()
		{
			// Primary Key
			this.HasKey(t => t.DocID);

			// Properties
			// Table & Column Mappings
			this.ToTable("Doc");
			this.Property(t => t.DocID).HasColumnName("DocID");
			this.Property(t => t.UserID).HasColumnName("UserID");
			this.Property(t => t.StatusComplete).HasColumnName("StatusComplete");
			this.Property(t => t.StatusAudit).HasColumnName("StatusAudit");
			this.Property(t => t.StatusQuestion).HasColumnName("StatusQuestion");
			this.Property(t => t.StatusValid).HasColumnName("StatusValid");
			this.Property(t => t.TimeAudit).HasColumnName("TimeAudit");
			this.Property(t => t.TimeAdd).HasColumnName("TimeAdd");
			this.Property(t => t.TimeUpdate).HasColumnName("TimeUpdate");
			this.Property(t => t.AuditorID).HasColumnName("AuditorID");
			this.Property(t => t.StatusModify).HasColumnName("StatusModify");
		}
	}
}

